package com.atguigu.crowd.service.api;

import com.atguigu.crowd.entity.Auth;

import java.util.List;
import java.util.Map;

public interface AuthService {
    List<Auth> getAll();

    List<Integer> getAssignedAuthIdByRoleId(Integer roleId);

    void saveRoleAuthRelationship(Map<String, List<Integer>> map);

    /**
     * 根据adminId查询已分配的权限名称 用于spring security给用户装配权限
     * @param adminId
     * @return
     */
    List<String> getAssignedAuthNameByAdminId(Integer adminId);
}
